/**
 *autho xf
 * */
function AddSubmit(){
        var  oldpwd             =$("#oldpwd").val();
        var  pwd                =$("#pwd").val();
        var  sure               =$("#sure").val();
        var  oldpwd             =$("#oldpwd").val();
        var  pwd                =$("#pwd").val();
        var  sure               =$("#sure").val();
        if(oldpwd==''||oldpwd==null){
            alert('原密码不能为空！！！'); return;
        }
        if(pwd==null||pwd==''){
            alert('新密码不能为空！！！'); return;
        }
        if(sure==''||sure==null){
            alert('确认密码不能为空！！！'); return;
        }
        if(pwd!=sure){
            alert('两次新置密码不一样！！！'); return;
        }
        $.ajax({
        url : '/admin/up_datapwd',
        type : "POST",
        data : {oldpwd:oldpwd,pwd:pwd,sure:sure,user_id:user_id},
        dataType : "json",
        cache:"false",
        timeout:30000,
         success: function (json) {
             if (json.code == 1) {//ok
                 alert(json.mess);
                 window.location.href = json.url;
                 return false;
             } if (json.code == 2) {//ok
                 alert(json.mess);
             }
        }
    });
    }